import request from '@/utils/request'
//explain
// 查询领用管理列表
export function listUsage(query) {
	return request({
		url: '/system/usage/list',
		method: 'get',
		params: query
	})
}

// 查询领用管理详细
export function getUsage(usageId) {
	return request({
		url: '/system/usage/' + usageId,
		method: 'get'
	})
}

// 新增领用管理
export function addUsage(data) {
	return request({
		url: '/system/usage',
		method: 'post',
		data: data
	})
}

// 修改领用管理
export function updateUsage(data) {
	return request({
		url: '/system/usage',
		method: 'put',
		data: data
	})
}

// 删除领用管理
export function delUsage(usageId) {
	return request({
		url: '/system/usage/' + usageId,
		method: 'delete'
	})
}



//查询个人领用管理详细
export function getUsagePeople(usagePeople) {
	return request({
		url: '/system/usage/people/' + usagePeople,
		method: 'get'
	})
}
